allow colored_noise to output normalized series and use it to generat… #543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed a bug this morning: the
CN
(colored noise) option of SurrogateSeries had variance much larger than the series it is meant to emulate. This is becausetsmodel.colored_noise()
did not previously allow to scale the output to a given value. This is now implemented, and used inSurrogateSeries.from_series()
.All tests pass on my machine, including a new one designed to test the scaling capability